package com.red.springmanual.usespring;


import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class MyAspect {

    @Before("execution(public void com.red.springmanual.usespring.UserService.test())")
    public void before(JoinPoint joinpoint){
        System.out.println("aspectBefore");
    }
}
